package com.beasts.antpage.core.utils.servlet;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author Locker
 * @date 04/06/2018 11:27 AM
 * @since 1.0
 */
public class ServletUtil {

    public static void outRequestForJson(HttpServletRequest request, HttpServletResponse response, String res) throws IOException {
        response.setContentType("application/json; charset=UTF-8");
        response.getWriter().print(res);
    }

}
